#include <iostream>
#include "UnitTest.h"

UnitTest::UnitTest(): numOk_(0), numFail_(0)
{
}

UnitTest::~UnitTest()
{
}

void UnitTest::testReport() const
{
  std::cerr << numOk_ + numFail_ << " tests" << std::endl;
  std::cerr << numOk_ << " passed" << std::endl;
  std::cerr << numFail_ << " not passed" << std::endl;
}

void UnitTest::checkError(bool a)
{
  if (a)
  {
    ++numOk_;
  }
  else 
  {
    ++numFail_;
  }
  return;
}
